-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rocmPackages_6: fix builds by using python311 #324235
rocmPackages_6: fix builds by using python311 #324235
Conversation
fb27f30
to
65af24e
Compare
I removed the update commit, as it seems to be too involved according to the ofborg errors. |
65af24e
to
3cff9b9
Compare
@ofborg build rocmPackages_6.llvm.compiler-rt |
OK I don't know how to fix these packages... Quoting last ofborg error:
|
You could get distutils by adding |
I tried that but it failed with the same original |
@@ -4,7 +4,7 @@ | |||
, symlinkJoin | |||
, fetchFromGitHub | |||
, cudaPackages | |||
, python3Packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend to overwrite python3Packages with python311Packages in this file, instead of every other file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend to overwrite python3Packages with python311Packages in this file, instead of every other file.
I was thinking about it, but it turned out to be a bit harder then running a sed
command, because there is no newScope
in this file.. I'm open to suggestions though.
Even with a custom scope like this: nixpkgs.overlays = [
(self: super:
let
python311Scope = self.lib.makeScope self.newScope (scope: {
python3 = self.python311;
python3Packages = self.python311Packages;
sphinx = scope.python3Packages.toPythonApplication scope.python3Packages.sphinx;
rocmPackages = self.recurseIntoAttrs (scope.callPackage "${nixpkgsLocation}/pkgs/development/rocm-modules/6" { });
});
in
{
rocmPackages = python311Scope.rocmPackages;
})
]; I'm also still getting complaints about |
I was also trying to figure this out and tried searching for examples that could shed some light but nothing became obvious after looking at: |
@doronbehar I've fixed error you mentioned #324235 (comment) with following patch: diff --git pkgs/development/rocm-modules/6/default.nix pkgs/development/rocm-modules/6/default.nix
index 8badd3990d57..203883bbd8f7 100644
--- pkgs/development/rocm-modules/6/default.nix
+++ pkgs/development/rocm-modules/6/default.nix
@@ -17,7 +17,10 @@ let
rocmUpdateScript = callPackage ./update.nix { };
in rec {
## ROCm ##
- llvm = recurseIntoAttrs (callPackage ./llvm/default.nix { inherit rocmUpdateScript rocm-device-libs rocm-runtime rocm-thunk clr; });
+ llvm = recurseIntoAttrs (callPackage ./llvm/default.nix {
+ inherit rocmUpdateScript rocm-device-libs rocm-runtime rocm-thunk clr;
+ inherit (python311Packages) callPackage;
+ });
rocm-core = callPackage ./rocm-core {
inherit rocmUpdateScript; |
Closing in favor of #325909 |
In the attempt to help #322145, see:
https://cache.nixos.org/log/6pb1csgh8d3s23hm4gnn8m9468ziwsis-rocm-llvm-compiler-rt-6.0.2.drv
Description of changes
Things done
Haven't tested this. Will wait for ofborg..
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)CC @vcunat
Add a 👍 reaction to pull requests you find important.
Fixes #325907 #325909